package cn.jsj.dispose;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 行政人员信息修改处理类
 * @author LI
 *
 */
 public class ModifyAdminPersInfo extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
	 public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		//调试信息
			cn.jsj.utils.SysLogger.PrintInfo("进入修改行政人员信息处理类");

			//获得参数
			int adminPersonId=Integer.parseInt(request.getParameter("adminpersonid").trim());
			String adminPersonName=request.getParameter("adminpersonname").trim();
			String birthtime3=request.getParameter("birthtime3").trim();
			String adminPersonSex=request.getParameter("adminpersonsex").trim();
			String politicalStatus=request.getParameter("politicalstatus3").trim();
			String educationalLevel=request.getParameter("educationallevel3").trim();
			String graduateSchool=request.getParameter("graduateschool3").trim();
			String adminPersonPhone=request.getParameter("adminpersonphone").trim();
			String pracagreement2=request.getParameter("adpracagreement").trim();
			String identityNumber=request.getParameter("identitynumber3").trim();
			String adminPersonEmail=request.getParameter("adminpersonemail").trim();
			String adminPersonPosition=request.getParameter("adminpersonposition").trim();

			//调试信息
			cn.jsj.utils.SysLogger.PrintInfo("       "+adminPersonId+"    "+pracagreement2+"    "+adminPersonEmail);

			//行政人员信息对象
			cn.jsj.pojo.TblAdminPersonnel tap=new cn.jsj.pojo.TblAdminPersonnel();
			tap.setAdminPersonEmail(adminPersonEmail);
			tap.setAdminPersonId(adminPersonId);
			tap.setAdminPersonName(adminPersonName);
			tap.setAdminPersonPhone(adminPersonPhone);
			tap.setAdminPersonPosition(adminPersonPosition);
			tap.setAdminPersonSex(adminPersonSex);
			tap.setBirthTime(cn.jsj.utils.TimeDispose.transferDate(birthtime3));
			tap.setEducationalLevel(educationalLevel);
			tap.setGraduateSchool(graduateSchool);
			tap.setIdentityNumber(identityNumber);
			tap.setPoliticalStatus(politicalStatus);
			tap.setPracAgreement(Integer.parseInt(pracagreement2));
			cn.jsj.utils.SysLogger.PrintInfo("赋值完成！！！");

			//更新修改的行政人员对象
			cn.jsj.dao.TblAdminPersonnelDAO tapd=new cn.jsj.dao.TblAdminPersonnelDAO();
			tapd.modifyPracLawyerInfo(tap);

			//调试信息
			cn.jsj.utils.SysLogger.PrintInfo("更改完成！！！");
	}
	 public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doGet(request,response);
	}
}